#ifndef DIALOGREADHISTORY_H
#define DIALOGREADHISTORY_H

//(*Headers(DialogReadHistory)
#include <wx/listctrl.h>
#include <wx/textctrl.h>
#include <wx/datectrl.h>
#include <wx/dateevt.h>
#include <wx/button.h>
#include <wx/dialog.h>
//*)

#include "Action.h"

class DialogReadHistory: public wxDialog
{
	public:

		DialogReadHistory(wxWindow* parent,Action* action,wxWindowID id=wxID_ANY,const wxPoint& pos=wxDefaultPosition,const wxSize& size=wxDefaultSize);
		virtual ~DialogReadHistory();

		//(*Declarations(DialogReadHistory)
		wxListCtrl* ListCtrl1;
		wxButton* Button4;
		wxDatePickerCtrl* DatePickerCtrl1;
		wxButton* Button1;
		wxButton* Button2;
		wxButton* Button3;
		wxTextCtrl* TextCtrl1;
		//*)

        int GetBookID();
		void SetBookID(int BookID);
		void RefreshHistoryList(Bbool UpdateOnly);

    private:
		void InitListCtrl();

    private:
        int BookID;
        Action* ThisAction;

	protected:

		//(*Identifiers(DialogReadHistory)
		static const long ID_LISTCTRL1;
		static const long ID_DATEPICKERCTRL1;
		static const long ID_TEXTCTRL1;
		static const long ID_BUTTON1;
		static const long ID_BUTTON2;
		static const long ID_BUTTON3;
		static const long ID_BUTTON4;
		//*)

	private:

		//(*Handlers(DialogReadHistory)
		void OnAddHistory(wxCommandEvent& event);
		void OnClose(wxCommandEvent& event);
		void OnDeleteHistory(wxCommandEvent& event);
		void OnRefresh(wxCommandEvent& event);
		//*)

		DECLARE_EVENT_TABLE()
};

#endif
